package top.zlhy7.module.dept.vo;

import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import top.zlhy7.module.dept.entity.SysDept;

import java.util.Collections;
import java.util.List;

/**
 * @author renyong
 * @date 2024/9/29 23:34
 * @description 部门树形结构
 */
@AutoMapper(target = SysDept.class)
@Data
public class SysDeptTreeVo{
    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptName;
    /**
     * 父级部门id
     */
    private Long parentId;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 子部门
     */
    private List<SysDeptTreeVo> children;

    public SysDeptTreeVo() {
        this.children = Collections.EMPTY_LIST;
    }
}
